module.exports = () => {
    return async function notFoundHandler(ctx, next) {
        await next();
        if (ctx.status === 404 && !ctx.body) {
            ctx.body = { code: '-1', err: '404 Not Found' };
        }
    };
};